#include <jni.h>
#include <string>

using  namespace std;

extern "C" JNIEXPORT jstring JNICALL
Java_com_cherry_ndkdemo_MainActivity_stringFromJNI(JNIEnv *env, jobject jobj) {
    string str = "from c text";
    return env->NewStringUTF(str.c_str());
}

